<template>
  <div class="container">
    <h3 class="container__title">{{project.name}}</h3>
    <div class="status__row flex-1">
      <span>此次结算金额：</span>
      <input v-model="money" type="number" class="input__money">
    </div>
    <div class="hint__box">
      <h4 class="hint__title">注意：</h4>
      <p>1、金额请按照证券账户实际操作金额填写。</p>
    </div>
    <div class="btn__box">
      <div class="btn__default btn__confirm" @click="confirm">确定结束</div>
      <div class="btn__default btn__back" @click="goBack">返回</div>
    </div>
  </div>
</template>

<script>
import {ATable, AModal} from '@/components';
import Api from '@/api';

export default {
  name: 'finisheddetail',
  components: {
  },
  props: {
    id: {
      type: [String, Number]
    }
  },
  data() {
    return {
      project: {
        name: '天下第一',
      },
      money: '',
    }
  },
  created() {
  },
  methods: {
    confirm() {
      const { id, money } = this;
      this.$router.push({name: 'clearingdetail', params: { id, amount: money, type: '1' }});
    },
    goBack() {
      this.$router.go(-1);
      console.log('返回');
    },
  }
};
</script>

<style lang="stylus" scoped>
.container__title
  font-size 18px
  margin-bottom 30px
  font-weight: normal
.status__row
  margin-bottom 20px
.status__item
  width 80px
  height 30px
  border: 1px solid #ddd
  color #000
  text-align center
  line-height 30px;
  margin-right: 30px
.status__item--active
  background: red
  border-color: red
  color: #fff
.hint__box
  color red
  line-height 1.5
  margin-bottom 40px
.btn__box
  display flex
  justify-content center
.btn__default 
  width: 120px
  height 30px
  margin 0 40px;
.btn__back
  border: 1px solid #333
  background #dddddd
  color #333
.row
  margin-bottom 30px;
.input__money
  width: 300px;
  height: 30px;
  border-radius 4px
  border 1px solid #ddd
  padding: 0 10px
  &::-webkit-inner-spin-button
    appearance none
</style>
